<?php
namespace app\admin\controller;
use app\admin\logic\OrderLogic;
use think\facade\Db;
use think\facade\Request;
use think\facade\View;

class Order
{
    public function orderList()
    {

        list($where) = OrderLogic::getWhere();
        $arr = \app\admin\model\Order::getOrderlist($where);
        $order_status = \app\admin\model\Order::getOrderlist1();


        View::assign('order_status',$order_status);

        return view('order/order_list',[
            "list" => $arr
            ]);

    }
    public function orderDetail()
    {
        $arr = Db::table('ecm_order_product')->select();
        return view('order/order_etail',[
            "list" => $arr
        ]);
    }
    public function orderBrand()
    {
        $arr = Db::table('ecm_brand')->select();
        return view('order/order_brand',[
            "list" => $arr
        ]);
    }
    public function orderBrand1()
    {
        $arr = Db::table('ecm_brand')->select();
        return view('order/order_brand1',[
            "list" => $arr
        ]);
    }
}